import {useAdminInfoStore} from "@/store/adminInfo.js";

//判断role:add这类有没有
export default function hasBtnPermission(permission){
    const adminInfoStore = useAdminInfoStore();
    const btns =adminInfoStore.btns;
    return btns.indexOf(permission)!==-1
}